import { ColumnProps } from '@douyinfe/semi-ui/lib/es/table';
import { format } from 'date-fns';

const BaseColumns: ColumnProps[] = [
  {
    title: '创建时间',
    dataIndex: 'updateTime',
    render: (cellContent) => {
      return cellContent ? (
        // <div>{format(cellContent, 'yyyy-MM-dd hh:mm:ss')}</div>
        <div>{cellContent}</div>
      ) : (
        '-'
      );
    },
  },
];

export default BaseColumns;
